package com.sjd.mall.domain.dto.base;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * ID
 *
 * @author seer
 * @version 1.0
 * @date 2022/1/13 15:38
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class IdRequestDTO {

    @ApiModelProperty(
            value = "ID",
            required = true
    )
    @NotNull(message = "id is null")
    private Long id;
}